import {Hero} from "../models/Hero";
import {Injectable} from "@angular/core";
import {Logger} from "./logger.service";

@Injectable()
export class HeroService {
    private heroes: Hero[] = [
        {name: '1'},
        {name: '2'},
        {name: '3'},
        {name: '4'},
        {name: '5'},
        {name: '6'}
    ]

    constructor(private logger: Logger) {
    }

    getHeroes(): Hero[] {
        return this.heroes
    }
}